/*
 * Decompiled with CFR 0.150.
 * 
 * Could not load the following classes:
 *  de.felixroske.jfxsupport.FXMLController
 *  org.slf4j.Logger
 *  org.slf4j.LoggerFactory
 *  org.springframework.beans.factory.annotation.Autowired
 *  org.springframework.scheduling.annotation.Async
 */
package com.gys.controller;

import com.gys.spliteService.SyncService;
import de.felixroske.jfxsupport.FXMLController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;

@FXMLController
public class SyncController {
    private static final Logger log = LoggerFactory.getLogger(SyncController.class);
    @Autowired
    private SyncService syncService;

    @Async
    public void syncData() {
        this.syncUserDataEx();
        this.syncProductDataEx();
        this.syncStoreDataEx();
        this.syncSaleDataEx();
    }

    @Async
    public void syncUserDataEx() {
        this.syncService.syncUserData();
    }

    @Async
    public void syncProductDataEx() {
        this.syncService.syncProductData();
    }

    @Async
    public void syncStoreDataEx() {
        this.syncService.syncStoreData();
    }

    @Async
    public void syncSaleDataEx() {
        this.syncService.syncSaleData();
    }
}

